package aspect;

import org.aspectj.lang.ProceedingJoinPoint;

public class LogAspect {
	
	public void logBefore(){
		System.out.println("log before....");
	}
	public void logAfter(){
		System.out.println("log after....");
	}
	
	
	public Object logArround(ProceedingJoinPoint point){
		System.out.println("arround before.....");
		Object o=null;
		String t=(String)point.getArgs()[0];
		try {
			
			point.proceed();
		} catch (Throwable e) {
			e.printStackTrace();
		}
		System.out.println("arround after.....");
		return "nihuai:"+t;
	}
}
